/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/14 18:39:22
 */
Ext.define('Monkey.store.organization.Organization', {
    extend: 'Monkey.store.BaseTreeStore',
    alias: 'store.organization',

    model: 'Monkey.model.organization.Organization',
    nodeParam: 'parentId',
    defaultRootId: '1',
    root: {
        expanded: true
    },
    proxy: {
        type: 'ajax',
        url: Monkey.URL.SERVER_URL + "/m/children_organizations.json",
        extraParams: {
            fields: 'id,leaf,name,parentId,icon,weight,expand,status,type'
        },
        reader: 'json'
    }
});